/*
 * @Author: huyu
 * @Date: 2020-06-06 11:35:46
 * @Last Modified by: huyu
 * @Last Modified time: 2020-06-16 16:33:25
 */

// 内容组件

import React, { Component } from "react"
import Headings from "./Headings"

import style from "./Content.module.less"

export default class Content extends Component {
  constructor(props) {
    super(props)
    this.state = {}
  }
  render() {
    return (
      <main className={style.main}>
        <div className={style.sideBar} />
        <div className={style.view}>{this.props.children}</div>
        <div className={style.sideBar}>
          <Headings headings={this.props.headings} />
        </div>
      </main>
    )
  }
}
